package com.panshi.api.api;

import com.panshi.api.bean.AnswerCommentsHDBean;
import com.panshi.api.bean.AnswerCommentsLinkBean;
import com.panshi.api.util.PageSizeVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author XiaoWangYa
 * @version 1.0
 * @date 2020/8/12 0012 上午 10:01
 */
@FeignClient("XiaoWangYo")
@Api("回答评论对外接口")
public interface AnswerCommentsHDPort {
    @PostMapping("/addAnswerCommentsHDInfo")
    @ResponseBody
    @ApiModelProperty("回答评论新增")
    AnswerCommentsHDBean addAnswerCommentsHDInfo (@RequestBody AnswerCommentsHDBean answerCommentsHDBean);

    @PostMapping("/deleteUserAnswerComments/{id}")
    @ResponseBody
    @ApiModelProperty("回答评论删除")
    void deleteUserAnswerComments (@PathVariable int id);

    @PostMapping("/queryAssignAnswerCommentsAll")
    @ResponseBody
    @ApiModelProperty("查询指定回答下所有评论")
    List<AnswerCommentsHDBean> queryAssignAnswerCommentsAll (@RequestBody PageSizeVO pageSizeHDBean);

    @PostMapping("/queryAssginAnswerReplyInfo")
    @ResponseBody
    @ApiModelProperty("查询评论回复")
    List<AnswerCommentsHDBean>  queryAssginAnswerReplyInfo(@RequestBody PageSizeVO pageSizeVO);

    @PostMapping("/updateAssignAnswerCommentsLink")
    @ResponseBody
    @ApiModelProperty("点赞评论")
    String updateAssignAnswerCommentsLink (@RequestBody AnswerCommentsLinkBean answerCommentsLinkBean);
}
